﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ChaXun : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Label1.Text = DateTime.Now.ToString();
    }
    protected void btnCX_Click(object sender, EventArgs e)
{
        //DateTime.Now.ToLongDateString().ToString();
        //DateTime.Now.ToShortTimeString().ToString();
        string dateNow = DateTime.Now.Month.ToString() +"/" +DateTime.Now.Day.ToString();
        DateTime.Now.Date.ToString();
        lblmsg.Text = dateNow;
        if (dateNow == "9/30")
       {
          users us = new users();
          string _id = txt_id.Text.Trim();
          us.m_id = _id;
          int result = us.select_xiaohai(us);

          if (result > 0)
          {
            lblmsg.Text = "恭喜您，您的孩子已被录取！";
          }
          else
          {
            lblmsg.Text = "很遗憾，您的孩子未被录取！！（如有疑问，请致电029--89310940转826、813、800）";
          }
       }
        else
       {
            lblmsg.Text = "未到规定时间不能查询！";
       }
    }
}
  
